import request from '@/utils/request'

// 查询辅导员考核人员列表
export function listExaminemonad(query) {
  return request({
    url: '/clr/examinemonad/list',
    method: 'get',
    params: query
  })
}
// 查询二级学管院长打分的考核人员
export function deptlist(query) {
  return request({
    url: '/clr/examinemonad/deptlist',
    method: 'get',
    params: query
  })
}
// 查询学生打分的考核人员
export function studentlist(query) {
  return request({
    url: '/clr/examinemonad/studentlist',
    method: 'get',
    params: query
  })
}
// 查询职能部门打分的人员
export function workdeptlist(query) {
  return request({
    url: '/clr/examinemonad/workdeptlist',
    method: 'get',
    params: query
  })
}

// 院系打分
export function getExaminemonad(cemId) {
  return request({
    url: '/clr/examinemonad/' + cemId,
    method: 'get'
  })
}

// 新增辅导员考核人员
export function addExaminemonad(data) {
  return request({
    url: '/clr/examinemonad',
    method: 'post',
    data: data
  })
}

// 修改辅导员考核人员
export function updateExaminemonad(data) {
  return request({
    url: '/clr/examinemonad',
    method: 'put',
    data: data
  })
}

// 删除辅导员考核人员
export function delExaminemonad(cemId) {
  return request({
    url: '/clr/examinemonad/' + cemId,
    method: 'delete'
  })
}
// 删除辅导员考核人员
export function scoring(data) {
  return request({
    url: '/clr/examinescoring/scoring',
    method: 'post',
    data: data
  })
}
